<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Article extends MY_Controller {
	public function __construct(){
        parent::__construct();
        $this->load->model('info_m');
        //导航栏
        $this->navmenu();
    }
    //文章详情
   	public function details(){

      $search='';
      $this->assign('search',$search);
   		if(isset($_GET['infoid'])){
   			$where['infoid']=array('=',$_GET['infoid']);
   			$list=$this->info_m->sel($where);
        $this->assign('list',$list);
        $this->display('article/details.html');
   		}else{
        $this->display('errors/parameter.html');
      }
   	}
 }